{% extends 'my_admin/table_index.html' %}
{% load tags %}

{% block continer %}
    <div class="row">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title">修改密码</h3>
            </div>
            <div class="panel-body col-lg-5">
                <form class="form-horizontal" role="form" method="post">
                    {% csrf_token %}
                    {% for field in form_obj %}
                        <div class="form-group">
                            <label for="" class="col-sm-3 control-label" style="font-weight: normal">
                                {{ field.label }}
                            </label>
                            <div class="col-md-4">
                                {{ field }}{{ field.help_text }}
                            </div>
                        </div>
                    {% endfor %}
                <div class="form-group">
                    <div class="col-sm-5">
                        <span class="pull-right" style="color: red;">{{ form_obj.non_field_errors.0 }}</span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-5">
                        <a class="btn btn-info pull-right" href="{% url 'obj_change' app_name table_name nid %}">取消并返回</a>
                        <button type="submit" class="btn btn-success pull-right" style="margin-right: 5px">Save</button>
                    </div>
                </div>

                </form>

            </div>
        </div>
    </div>

{% endblock %}